package es.onlysolutions.gs.comm.utils;

import es.onlysolutions.arq.core.mvc.utils.SynchronizedDateFormat;

import java.util.Calendar;

public final class StringUtils
{
    private static final SynchronizedDateFormat dateFormat = new SynchronizedDateFormat("dd/MM/yyyy");

    /**
     * convierte a String el calendario indicado.
     * @param cal El calendario a convertir.
     * @return Un String.
     */
    public static String toString( Calendar cal )
    {
        return dateFormat.format( cal.getTime() );
    }
}
